package com.fjut.zr.judge_system.Util;

public class POJCodeLanguage {
    private String[] languages=new String[]{"G++","GCC","JAVA","Pascal","C++","C"};
    int len=languages.length;
    public int getLanguageId(String language)
    {
        for(int i=0;i<len;i++)
        {
            if(languages[i].equals(language)) {
                return i;
            }
        }
        return 0;
    }
}
